After the fact.
An instance of the post hoc ergo propter hoc fallacy, in which temporal order is confused with causation.